package com.nuit.cxl.ch2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuit.cxl.ch2.vo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<Student> {

    //最原始mybaits的用法
    @Select("SELECT * FROM `user` WHERE `age` = #{age}")
    List<Student> selectByAge(Integer age);

}
